Skip to content

fix: Download worker and monaco initializing multiple times in dev#2452

Merged
mattrunyon merged 1 commit intodeephaven:mainfrom
mattrunyon:app-init-fix
May 22, 2025
Merged

fix: Download worker and monaco initializing multiple times in dev#2452
mattrunyon merged 1 commit intodeephaven:mainfrom
mattrunyon:app-init-fix

Conversation

@mattrunyon
Copy link
Copy Markdown
Collaborator

I noticed my console logs spammed with Registering service worker in dev mode (with dh.ui tables/panels with tables) and multiple service workers in the sources tab.

This doesn't seem to be an issue in prod, so I'm guessing it has something to do with React dev mode. I also think previously these initializers were actually at the root, but now they are under a bunch of contexts that can be changed and cause the dev re-render.

Didn't see the same behavior in enterprise where these inits are either under a useEffect or above the contexts at the root.

@mattrunyon mattrunyon requested a review from a team May 22, 2025 15:26
@mattrunyon mattrunyon self-assigned this May 22, 2025
@mattrunyon mattrunyon requested review from vbabich and removed request for a team May 22, 2025 15:26
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2025

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 47.22%. Comparing base (ad4205d) to head (38e7023).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/code-studio/src/AppRoot.tsx 0.00% 9 Missing ⚠️
...ages/code-studio/src/styleguide/StyleGuideRoot.tsx 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2452      +/-   ##
==========================================
- Coverage   47.22%   47.22%   -0.01%     
==========================================
  Files         718      718              
  Lines       39607    39609       +2     
  Branches     9909    10098     +189     
==========================================
  Hits        18706    18706              
+ Misses      20890    20849      -41     
- Partials       11       54      +43     
Flag Coverage Δ
unit 47.22% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mattrunyon mattrunyon merged commit 74fd724 into deephaven:main May 22, 2025
11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants